var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(1102112, "oid=218924", 490, 1091, 82, 440, 540, 1, false, 0, false);
            cm.npc_ChangeController(1104300, "oid=218925", 553, 1310, 88, 503, 603, 1, false, 0, false);
            cm.dispose()
        }
    }
};